#include "SectorMapItem.h"
#include "AbstractSectorMapItem.h"

SectorMapItem::SectorMapItem()
: AreaMapItem(MapItemType::Sector)
{

}

SectorMapItem::SectorMapItem(const QPointF &pos, qreal radius, qreal startAngle, qreal rangeAngle)
: AreaMapItem(MapItemType::Sector)
{
	setPos(pos);
	setRadius(radius);
	setStartAngle(startAngle);
	setRangeAngle(rangeAngle);
}

SectorMapItem::~SectorMapItem()
{

}

void SectorMapItem::setRadius(qreal radius)
{
	dynamic_cast<AbstractSectorMapItem*>(d_ptr)->setRadius(radius);
}

double SectorMapItem::getRadius() const
{
	return dynamic_cast<AbstractSectorMapItem*>(d_ptr)->getRadius();
}

void SectorMapItem::setStartAngle(qreal startAngle)
{
	dynamic_cast<AbstractSectorMapItem*>(d_ptr)->setStartAngle(startAngle);
}

void SectorMapItem::setRangeAngle(qreal rangeAngle)
{
	dynamic_cast<AbstractSectorMapItem*>(d_ptr)->setRangeAngle(rangeAngle);
}

qreal SectorMapItem::getStartAngle() const
{
	return dynamic_cast<AbstractSectorMapItem*>(d_ptr)->getStartAngle();
}


qreal SectorMapItem::getRangeAngle() const
{
	return dynamic_cast<AbstractSectorMapItem*>(d_ptr)->getRangeAngle();
}



